package cn.com.connected.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Created by sms on 2021/06/23.
 */
@Data
@Builder
public class UpdateMobileDto {

    @NotEmpty(message = "请输入登录密码")
    @Length(min = 6,message = "长度必须六位及以上")
    @ApiModelProperty(notes = "密码")
    private String pwd;

    @NotEmpty(message = "请输入新的手机号")
    @Length(min = 11,message = "长度必须11位及以上")
    @ApiModelProperty(notes = "新的手机号")
    private String mobile;

    @NotNull(message = "请输入短信验证码")
    @ApiModelProperty(notes = "新手机号的短信验证码")
    private Integer smsCode;

    @Tolerate
    public UpdateMobileDto() {
    }
}
